org.eclipse.vtp.desktop.projects.core.internals
Class WebServiceOperation

java.lang.Object
  extended by org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
      extended by org.eclipse.vtp.desktop.projects.core.internals.WebServiceOperation
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, ObjectListener, WebServiceConstants, IVoiceToolsResource, IWebServiceOperation

public class WebServiceOperation
extends VoiceResource
implements IWebServiceOperation, WebServiceConstants

WebServiceOperation.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.desktop.projects.core.internals.WebServiceConstants
ATTRIBUTE, ATTRIBUTE_GROUP, BASE, COMPLEX_TYPE, CONTENT, ELEMENT, EXTENSION, FAULT, GROUP, INPUT, ITEM_TYPE, LIST, MEMBER_TYPES, MESSAGE, NAME, NS_WSDL, NS_XSD, OPERATION, OUTPUT, PART, PORT, PORT_TYPE, REF, RESTRICTION, SCHEMA, SERVICE, SIMPLE_CONTENT, SIMPLE_TYPE, STRING, TARGET_NAMESPACE, TYPE, TYPES, UNION, VALUE, XMLNS
 
Constructor Summary
WebServiceOperation(WebServicePort webServicePort, WebServiceTypeSet types, java.lang.Class portClass, java.util.Map messagePartIndex, org.w3c.dom.Element wsdlOperationElement)
          Creates a new WebServiceOperation.
 
Method Summary
 FieldType getFault(java.lang.String faultName)
          Returns the web service message formats this operation returns as faults.
 java.lang.String[] getFaultNames()
          Returns the names of the web service message formats this operation returns as faults.
 FieldType getInput(java.lang.String inputName)
          Returns the named web service message format this operation takes as input.
 java.lang.String[] getInputNames()
          Returns the names of the web service message formats this operation takes as input.
 java.lang.String getName()
           
protected  java.lang.String getObjectId()
          The object id is used by the event system to uniquely identify a project resource.
 FieldType getOutput()
          Returns the web service message format this operation returns as output.
 IVoiceToolsResource getParent()
          Returns the parent of this resource.
 IWebServicePort getWebServicePort()
          Returns the IWebServicePort that contains this operation.
 
Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource
addRefreshListener, deferEvents, finalize, getAdapter, getProject, processObjectEvent, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.vtp.desktop.projects.core.IVoiceToolsResource
addRefreshListener, deferEvents, getProject, refresh, removeRefreshListener, resumeEvents
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

WebServiceOperation

public WebServiceOperation(WebServicePort webServicePort,
                           WebServiceTypeSet types,
                           java.lang.Class portClass,
                           java.util.Map messagePartIndex,
                           org.w3c.dom.Element wsdlOperationElement)
Creates a new WebServiceOperation.

Parameters:
webServicePort - The web service that contains this operation.
types - The web service types this port's operations will work on.
portClass - The class generated for the port type.
messagePartIndex - The index of message part names.
wsdlOperationElement - The XML element this operation was declared in.
Method Detail

getObjectId

protected java.lang.String getObjectId()
Description copied from class: VoiceResource
The object id is used by the event system to uniquely identify a project resource. In this fashion, multiple references to the resource can be created and still be notified of events.

Specified by:
getObjectId in class VoiceResource
Returns:
A unique identifier for this resource

getName

public java.lang.String getName()
Specified by:
getName in interface IVoiceToolsResource
Returns:
The name of the resource

getParent

public IVoiceToolsResource getParent()
Description copied from interface: IVoiceToolsResource
Returns the parent of this resource. If this is a project resource this function returns this.

Specified by:
getParent in interface IVoiceToolsResource
Returns:
The parent of this resource resource

getInputNames

public java.lang.String[] getInputNames()
Description copied from interface: IWebServiceOperation
Returns the names of the web service message formats this operation takes as input.

Specified by:
getInputNames in interface IWebServiceOperation
Returns:
The names of the web service message formats this operation takes as input.

getInput

public FieldType getInput(java.lang.String inputName)
Description copied from interface: IWebServiceOperation
Returns the named web service message format this operation takes as input.

Specified by:
getInput in interface IWebServiceOperation
Parameters:
inputName - The name of the input parameter type to return.
Returns:
The named web service message format this operation takes as input.

getFaultNames

public java.lang.String[] getFaultNames()
Description copied from interface: IWebServiceOperation
Returns the names of the web service message formats this operation returns as faults.

Specified by:
getFaultNames in interface IWebServiceOperation
Returns:
The names of the web service message formats this operation returns as faults.

getFault

public FieldType getFault(java.lang.String faultName)
Description copied from interface: IWebServiceOperation
Returns the web service message formats this operation returns as faults.

Specified by:
getFault in interface IWebServiceOperation
Parameters:
faultName - The name of the fault return type to return.
Returns:
The web service message formats this operation returns as faults.

getOutput

public FieldType getOutput()
Description copied from interface: IWebServiceOperation
Returns the web service message format this operation returns as output.

Specified by:
getOutput in interface IWebServiceOperation
Returns:
The web service message format this operation returns as output.

getWebServicePort

public IWebServicePort getWebServicePort()
Description copied from interface: IWebServiceOperation
Returns the IWebServicePort that contains this operation.

Specified by:
getWebServicePort in interface IWebServiceOperation
Returns:
The IWebServicePort that contains this operation.